<?php 

header("Content-type: text/html; charset=utf-8"); 

$url ='http://api.map.baidu.com/place/v2/search?query=母婴&bounds=31.089149,121.285037,31.189149,121.385037&output=json&ak=vsyOGdcCMPzhapWUWCGcDWOWNnzMgM4t&page_num=1';

$url = "http://api.map.baidu.com/place/v2/search?query=母婴&region=普宁&output=json&ak=vsyOGdcCMPzhapWUWCGcDWOWNnzMgM4t&page_num=0";

// 26，95）（31，122.6）

$data = file_get_contents($url);


$data = json_decode($data,true);


var_dump($data);
















 ?>